//
//  Brands_BrandsMainBrandList_Cell_WX.m
//  ZITHER
//
//  Created by weixin on 2019/4/9.
//  Copyright © 2019 weixn. All rights reserved.
//

#import "Brands_BrandsMainBrandList_Cell_WX.h"

@implementation Brands_BrandsMainBrandList_Cell_WX

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    [self addSubview:self.title];
    [self addSubview:self.titleSub];
    [self.title mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).offset(15);
        make.top.equalTo(self).offset(10);
        make.height.mas_equalTo(15);
    }];
    [self.titleSub mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).offset(15);
        make.top.equalTo(self.title.mas_bottom).offset(5);
        make.height.mas_equalTo(12);
        make.bottom.equalTo(self.mas_bottom).offset(-10);
    }];
}


-(BaseLab*)title{
    if (!_title) {
        _title = [BaseLab initCustomLab:@"主标题" color:HexColor(0x333333) font:[UIFont fontWithName:@"PingFang-SC-Regular" size:15]];
        _title.backgroundColor = [UIColor whiteColor];
    }
    return _title;
}

-(BaseLab*)titleSub{
    if (!_titleSub) {
        _titleSub = [BaseLab initCustomLab:@"子标题" color:HexColor(0x333333) font:[UIFont fontWithName:@"PingFang-SC-Light" size:12]];
        _titleSub.backgroundColor = [UIColor whiteColor];
    }
    return _titleSub;
}
@end
